//统一管理用户接口
import request from "../../utils/request";
import type { loginForm,loginRequsonseData ,userReqsonData} from './type.ts'
enum API {
    Login_url = "/user/login",
    UserInfo_url = "/user/info",
}

export const reqLogin = (data: loginForm) => request.post<any,loginRequsonseData>(API.Login_url,data);
export const reqUserInfo = () => request.post<any,userReqsonData>(API.UserInfo_url);


